import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var Httj52v4ComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(Httj52v4ComponentViewmodel, _super);
    function Httj52v4ComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/httjs';
        _this.dom = {
            "httj-52v4-dataGrid": {
                "type": "DataGrid",
                "resourceId": "httj-52v4-dataGrid",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "httj-52v4-dataGrid",
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "htbh_f2766c76_464f",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "htbh_f2766c76_464f",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "htbh",
                            "fullPath": "htbh",
                            "isExpression": false,
                            "value": "htbh"
                        },
                        "dataField": "htbh",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "合同编号",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "htbh_f2766c76_bah0",
                            "defaultI18nValue": "合同编号",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "htbh_f2766c76_bah0",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "htbh",
                                "fullPath": "htbh",
                                "isExpression": false,
                                "value": "htbh"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "htmc_34193c7e_dqn3",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "htmc_34193c7e_dqn3",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "htmc",
                            "fullPath": "htmc",
                            "isExpression": false,
                            "value": "htmc"
                        },
                        "dataField": "htmc",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "合同名称",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "htmc_34193c7e_o9kn",
                            "defaultI18nValue": "合同名称",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "htmc_34193c7e_o9kn",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "htmc",
                                "fullPath": "htmc",
                                "isExpression": false,
                                "value": "htmc"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "htqdrq_8046b93d_ir26",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "htqdrq_8046b93d_ir26",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "htqdrq",
                            "fullPath": "htqdrq",
                            "isExpression": false,
                            "value": "htqdrq"
                        },
                        "dataField": "htqdrq",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "合同签订日期",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "htqdrq_8046b93d_1zkb",
                            "defaultI18nValue": "合同签订日期",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "htqdrq_8046b93d_1zkb",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "htqdrq",
                                "fullPath": "htqdrq",
                                "isExpression": false,
                                "value": "htqdrq"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "htqdr_6e3f794c_ch7s",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "htqdr_6e3f794c_ch7s",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "htqdr",
                            "fullPath": "htqdr",
                            "isExpression": false,
                            "value": "htqdr"
                        },
                        "dataField": "htqdr",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "合同签订人",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "htqdr_6e3f794c_p10e",
                            "defaultI18nValue": "合同签订人",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "htqdr_6e3f794c_p10e",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "htqdr",
                                "fullPath": "htqdr",
                                "isExpression": false,
                                "value": "htqdr"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    }
                ],
                "multiSelect": false,
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    Httj52v4ComponentViewmodel.prototype.httj52v4componentviewmodelAddItem1 = function (commandParam) { return; };
    Httj52v4ComponentViewmodel.prototype.httj52v4componentviewmodelRemoveItem1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'httj52v4componentviewmodelAddItem1',
            params: {}
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], Httj52v4ComponentViewmodel.prototype, "httj52v4componentviewmodelAddItem1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'httj52v4componentviewmodelRemoveItem1',
            params: {
                id: '{DATA~/#{httj-52v4-component}/httjs/id}'
            },
            paramDescriptions: {
                id: ɵ0
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], Httj52v4ComponentViewmodel.prototype, "httj52v4componentviewmodelRemoveItem1", null);
    Httj52v4ComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], Httj52v4ComponentViewmodel);
    return Httj52v4ComponentViewmodel;
}(ViewModel));
export { Httj52v4ComponentViewmodel };
export { ɵ0 };
